package com.lmk.homework;

public class Monter {
    int level = 10;
    int hp = level * 1000;

    void attacked(int att) {
        if (hp > att)
            hp -= att;
        else
            hp = 0;
    }





}
